<?php
namespace Admin\Controller;
use Think\Controller;
/**
 * 公共 Action 类
 * @author Jeff
 */
class CommonController extends Controller {

    public function _initialize() {
        //session是否过时
        if (!session('sysuid')) {
            $this->redirect('/Admin/Login/index');
        }else{
        	$this->sysuser = M('sysuser')->where(array('id'=>session('sysuid')))->find();
        }
		$this->sysuser = M('sysuser')->where(array('id'=>session('sysuid')))->find();
    }
}